]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/remoteAccess: Don't override existing style classes
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 18 Nov 2022 17:50:43 +0000 (18:50 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 18 Nov 2022 17:50:43 +0000 (18:50 +0100)
The indicator needs special styling for the color, but we still
want it to pick shared 'system-status-icon' styling like the
icon size.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6008

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2547>

js/ui/status/remoteAccess.js

index 43435ba4858d4a33d5007b59b61e7641e02347e4..1ed87931aefa5707359e435e12fa425589b8fcae 100644 (file)
@@ -23,10 +23,8 @@ class RemoteAccessApplet extends SystemIndicator {
         this._handles = new Set();
 
         this._indicator = this._addIndicator();
-        this._indicator.set({
-            style_class: 'screencast-indicator',
-            icon_name: 'media-record-symbolic',
-        });
+        this._indicator.icon_name = 'media-record-symbolic';
+        this._indicator.add_style_class_name('screencast-indicator');
 
         controller.connect('new-handle', (o, handle) => {
             this._onNewHandle(handle);